export function permissionList(authorityCode) {
  return new Promise(function (resolve, reject) {
    let list = [];
    var userinfo = localStorage.getItem("userInfo");
    var info = JSON.parse(userinfo);
    for (var i = 0; i < info.permissionList.length; i++) {
      if (authorityCode == info.permissionList[i]) {
        resolve(true);
        break;
      }
    }
  });
}
